/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bm.util;

/**
 *
 * @author Mirza at Bimasakti
 */
public class MrArrayConverter implements java.io.Serializable{
    private Object[] data;
    public MrArrayConverter(Object[] data){
        this.data = data;
    }
    
    public Object[] getData(){
        if (data.length > 0) {
            Object[] newData = new Object[data.length - 1];
            for(int i = 1; i < data.length; i++){
                newData[i - 1] = data[i];
            }
            return newData;
        } else {
            return null;
        }
    }
    
    public String getMethodName(){
        return (String) data[0];
    }        
}
